﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace HRWebSite
{
    public partial class HRSys : BaseMasterPage
    {
        protected override void Page_Load(object sender, EventArgs e)
        {
            base.Page_Load(sender, e);            
            if (this.HRUser != null)
                this.Literal1.Text = this.HRUser.Name;
        }

        protected void LinkButton1_Click(object sender, EventArgs e)
        {
            Session.Remove("CurUser");
            this.Response.Redirect("~/user/login.aspx");
        }        
    }
}